x86/mm: Don't lose track of the log dirty bitmap
authorTim Deegan <tim@xen.org>
Thu, 1 Dec 2011 14:17:16 +0000 (14:17 +0000)
committerTim Deegan <tim@xen.org>
Thu, 1 Dec 2011 14:17:16 +0000 (14:17 +0000)
commitc42f21961b6ffab77acf5f3bad31ea2392979f6a
tree8ecaab763ac263afdf8e87d311d4b6edb01a338b
parent67b8a0a32430a43c1e2c19f8f26c8f4dcb55cf62
x86/mm: Don't lose track of the log dirty bitmap

hap_log_dirty_init unconditionally sets the top of the log dirty
bitmap to INVALID_MFN. If there had been a bitmap allocated, it is
then leaked, and the host crashes on an ASSERT when the domain is
cleaned up.

Signed-off-by: Tim Deegan <tim@xen.org>
Acked-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Committed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/paging.c